#ifndef _V_MAIN_WINDOW_H_
#define _V_MAIN_WINDOW_H_
#include <windows.h>
#include <QWidget>
#include "voptionsbar.h"

class VOptionsBar;
class QHBoxLayout;
class VOptionsBar;
class VCloseButton;
class VChatInterface;
class VContactsInterface;

class VMainWindow : public QWidget
{
    Q_OBJECT
public:
    VMainWindow(QWidget *parent = nullptr);
    ~VMainWindow();
    
private:
    void initConnect();
    void initLayout();
    void onOptionSeleted(OPTIONS option);
    bool nativeEvent(const QByteArray& eventType, void* message, qintptr* result)override;
    void paintEvent(QPaintEvent* event);
    void setMainWindow(QWidget* window);

    QWidget* m_pMainWindow;
    QHBoxLayout* m_pHBoxLayout;
    VOptionsBar* m_pOptionBar;
    VChatInterface* m_pChatInterface;
    VContactsInterface* m_pContactsInterface;
};
VMainWindow*MainWindow();

#endif// _V_MAIN_WINDOW_H_